<script setup lang="ts">
import AudioCall from './components/AudioCall.vue'
</script>

<template>
  <div class="app-container">
    <header class="app-header">
      <h1>WebRTC 音频通话</h1>
      <p>基于WebRTC的实时音频对话系统</p>
    </header>
    <main class="app-main">
      <AudioCall />
    </main>
    <footer class="app-footer">
      <p>支持主叫/被叫模式，实时音频通话</p>
    </footer>
  </div>
</template>

<style scoped>
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.app-header {
  text-align: center;
  padding: 2rem 1rem;
  color: white;
}

.app-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.app-header p {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

.app-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem;
}

.app-footer {
  text-align: center;
  padding: 1rem;
  color: white;
  opacity: 0.8;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .app-header h1 {
    font-size: 2rem;
  }
  
  .app-header p {
    font-size: 1rem;
  }
}
</style>